/*
 * To change this template, choose Tools | Templates and open the template in
 * the editor.
 */
package com.oop.example.work.bel;

import java.util.ArrayList;

/**
 *
 * @author -
 */
public class ParsedEntrys extends ArrayList<ParsedEntry> {

    public ParsedEntry getHomonym(ParsedEntry e) {
        for (ParsedEntry some : this) {
            if (some.isHomonym(e)) {
                return some;
            }
        }
        return null;
    }

    public ParsedEntry getHomograph(ParsedEntry e) {
        for (ParsedEntry some : this) {
            if (some.isHomograph(e)) {
                return some;
            }
        }
        return null;
    }
}
